package com.prodog.usermodule.role.constant;

import java.util.HashMap;
import java.util.Map;

public class RoleConstant {
    private static Map<Integer, String> stateMap = new HashMap<>();

    static {
        initStateMap();
    }

    private static void initStateMap() {
        stateMap.put(1, "正常");
        stateMap.put(2, "战斗中");
        stateMap.put(3, "死亡");
    }

    public static String getState(Integer state) {
        return stateMap.get(state);
    }
}
